﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo02
{
    class Dog : Animal,Swim
    {
        public override void Eat()
        {
            Console.WriteLine("我吃狗粮");
        }

        public void Swim()
        {
            Console.WriteLine("我会游泳");
        }
    }
}
